#!/usr/bin/php5
<?php

require('auc_api.php');

$auc = new auc_api();

echo "\n\n ----- get watchlist ----- \n";
print_r($auc->get_watchlist('tw_auc_user3'));

echo "\n\n ----- get auc search rss ----- \n";
$p=array(
's'=>'-numbids', //curprice,numbids,buyPrice,endtime,ptime
'haspic'=>'1',
'cat'=>'',
'mincurprice'=>'',
'maxcurprice'=>'',
'ei'=>'UTF-8',
);
print_r($auc->get_search_rss('iphone',$p));

echo "\n\n ----- get auc search category ----- \n";
print_r($auc->get_search_category('iphone',$p));

echo "\n\n ----- get auc auto complete ----- \n";
print_r($auc->get_autocomplete('iphone'));

?>
